package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.CheckTheNumberOfUnits1Dao;
import com.infoauto.opc.gateway.dao.ControlSignalDao;
import com.infoauto.opc.gateway.model.gtm4.CheckTheNumberOfUnits1;
import com.infoauto.opc.gateway.model.gtm4.ControlSignal;
import com.infoauto.opc.gateway.service.CheckTheNumberOfUnits1Service;
import com.infoauto.opc.gateway.service.ControlSignalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 控制信号
 */
@Service
public class ControlSignalServiceImpl implements ControlSignalService {
    @Autowired
    private ControlSignalDao dao;

    @Override
    public int insert(ControlSignal controlSignal) {
        return dao.insert(controlSignal);
    }

    @Override
    public List<ControlSignal> selectControlSignal(String stationName, String projectName, String startTime, String endTime) {
        return dao.selectControlSignal(stationName,projectName,startTime,endTime);
    }
}
